package org.example.controller.en;

import org.example.service.api.en.UserDepositDormitoryEnInterface;
import org.example.util.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@ResponseBody
@Controller
@CrossOrigin
public class UserDepositDormitoryEnController {
    @Autowired
   @Qualifier("userDepositDormitoryEnInterfaceImpl")
    UserDepositDormitoryEnInterface depositDormitoryEnService;

    @GetMapping("/userQueryAll")
    public PageList userQueryAll(Integer userId,Integer page,Integer pageSize){
        PageList userDepositDormitoryEnPageList =depositDormitoryEnService.getUserDepositDormitryAll(userId, page, pageSize);
        return userDepositDormitoryEnPageList;
    }
}
